package com.resource.controller;

//import com.resource.service.UserClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping
public class ResourceController {

//    @Autowired
//    UserClient userClient;
 
    @Value("${server.port}")
    private int port;
 
//    @GetMapping("/resourceInfo")
//    public String resourceInfo() {
//        log.info("resourceInfo ok!  port={}", port);
//        String s = userClient.userInfo();
//        log.info("远程调用 ok!  result : {}", s);
//        return "resourceInfo ok! port=" + port;
//    }
 
}